import request from '@/config/axios'

// 师昌绪终评-设置 VO
export interface ScxFinalSettingsVO {
  id: string // 终评设置ID
  awardId: string // 评奖ID
  amountId: string // 总名额ID
  finalDate: Date // 终评日期
  remark: string // 备注
}

// 师昌绪终评-设置 API
export const ScxFinalSettingsApi = {
  // 查询师昌绪终评-设置分页
  getScxFinalSettingsPage: async (params: any) => {
    return await request.get({ url: `/awards/scx-final-settings/page`, params })
  },

  // 查询师昌绪终评-设置详情
  getScxFinalSettings: async (id: string) => {
    return await request.get({ url: `/awards/scx-final-settings/get?id=` + id })
  },

  // 新增师昌绪终评-设置
  createScxFinalSettings: async (data: ScxFinalSettingsVO) => {
    return await request.post({ url: `/awards/scx-final-settings/create`, data })
  },

  // 修改师昌绪终评-设置
  updateScxFinalSettings: async (data: ScxFinalSettingsVO) => {
    return await request.put({ url: `/awards/scx-final-settings/update`, data })
  },

  // 删除师昌绪终评-设置
  deleteScxFinalSettings: async (id: string) => {
    return await request.delete({ url: `/awards/scx-final-settings/delete?id=` + id })
  },

  // 导出师昌绪终评-设置 Excel
  exportScxFinalSettings: async (params) => {
    return await request.download({ url: `/awards/scx-final-settings/export-excel`, params })
  },

  // 获得指定评奖的师昌绪终评-设置
  getScxFinalSettingsByAwardsId: async (awardsId: string) => {
    return await request.get({
      url: `/awards/scx-final-settings/get-by-awards?awardsId=` + awardsId
    })
  }
}
